package com.hrms.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.hrms.po.Department;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

@Component
@Scope("prototype")
public class Template extends ActionSupport implements ModelDriven<Department> {

	private static final long serialVersionUID = -9167814895816445121L;
	private Department department;
	
	public Department getDepartment() {
		return department;
	}
	
	@Resource
	public void setDepartment(Department department) {
		this.department = department;
	}
	
	public Department getModel() {
		return department;
	}
}
